package com.dsj.cloud.consume;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;

/**
 * @EnableFeignClients 加入客户端的负载均衡 feign
 * spring cloud的负载均衡 是建立在调用方客户端的
 * @author pacy.pan
 *
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
public class ConsumeClientApplication {

	public static void main(String[] args) {
		new SpringApplicationBuilder(ConsumeClientApplication.class).web(true).run(args);
	}
}
